package fun.sboy.headacheMemo.entry;

import lombok.Data;

import java.util.Date;

/**
 * 文章
 */
@Data
public class Article {

    /*
    CREATE TABLE `h_article` (
          `a_id` int(11) NOT NULL AUTO_INCREMENT,
          `title` varchar(50) NOT NULL,
          `author_id` int(11) DEFAULT NULL COMMENT '作者ID',
          `context` longtext,
          `tags` tinytext COMMENT '标签',
          `creat_time` datetime DEFAULT CURRENT_TIMESTAMP,
          `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
          `view_count` mediumtext,
          PRIMARY KEY (`a_id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章列表';
    * */
    private String aId;
    private String title;
    private String authorId;
    private String contextMarkdown;
    private String tags;
    private Date createTime;
    private Date updateTime;
    private Long viewCount;

}
